import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import stateUrl from './https';
import $md5 from './utils/md5';
import {_api,_formApi} from './utils/axios';
import Element from 'element-ui';
import * as echarts from 'echarts'
import bread from "@/components/bread.vue";
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
Vue.use(Element);
Vue.prototype.$echarts = echarts;
Vue.prototype.$md5 = $md5;
Vue.component('bread', bread)
//Vue.prototype.axios = _api;   //普通格式提交
Vue.prototype.axios = _formApi; // form-data格式提交
Vue.prototype.stateUrl = stateUrl;  //接口
import VueParticles from 'vue-particles';
Vue.use(VueParticles);
// 成功提醒
Vue.prototype.msgSuccess = function (msg) {
  this.$message({ showClose: true, message: msg, type: "success" });
}
// 错误提醒

Vue.prototype.msgError = function (msg) {
  this.$message({ showClose: true, message: msg, type: "error" });
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
